package com.logistics.modules.transportationManagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.logistics.common.utils.PageUtils;
import com.logistics.modules.transportationManagement.entity.ClientorderEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author HURRICANE
 * @email HURRICANE@nb.com
 * @date 2022-05-06 18:12:10
 */
public interface ClientorderService extends IService<ClientorderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存客户订单
     *
     * @param map 地图
     */
    void saveClientOrder(Map<String, Object> map);


    /**
     * 更新客户订单
     *
     * @param map 地图
     */
    void updateClientOrder(Map<String, Object> map);

    /**
     * 选择一个通过id
     *
     * @param id id
     * @return {@link ClientorderEntity}
     */
    ClientorderEntity selectOneById(Integer id);

    /**
     * 库存和返回客户订单信息
     *
     * @param clientOrderId 客户订单id
     * @param storehouse
     * @return {@link ClientorderEntity}
     */
    ClientorderEntity inventoryAndReturnCustomerOrderInformation(Integer clientOrderId, Integer storehouse);

    Map<String,Object> SelectAllClientorder();
}

